package cn.edu.lzu.service.impl;

import cn.edu.lzu.dao.NationMapper;
import cn.edu.lzu.entity.Nation;
import cn.edu.lzu.service.NationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @PackageName: cn.edu.lzu.service.impl
 * @ClassName: NationServiceImpl
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/4/18 16:25
 * @Version: 1.0
 */
@Transactional
@Service
public class NationServiceImpl implements NationService {
    @Resource
    private NationMapper nationMapper;

    @Override
    public List<Nation> getAllNations() {
        List<Nation> nationList=nationMapper.selAllNations();
        return nationList;
    }
}
